﻿using System;
using System.Collections.Generic;

namespace FamilyBook.Core.Entities
{
    public abstract class Counterparty : IEntityStatus, IEntityVersionable
    {
        public int CounterpartyId { get; set; }
        public virtual ICollection<Account> Accounts { get; set; }
        public virtual ICollection<Product> Products { get; set; }

        #region IEntityStatus
        public EntityStatus Status { get; set; }
        #endregion

        #region IEntityVersionable
        public int Version { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
        #endregion
    }
}
